<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <link href="/Show/Admin/Public/css/news.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="/Show/Admin/Public/js/jqselect.js"></script>
    <script type="text/javascript" src="/Show/Admin/Public/js/jquery-3.1.1.min.js"></script>
    <title>权限列表</title>
  </head>
  <body>
    <form action="{$smarty.const.__CONTROLLER__}/delete" method="post">
    <div class="mainbox">
          <div class="tablebox">            
            <table class="table" >
              <tr class="one">
                <td>
                <input type="checkbox" id="selectAll">
                </td>
                <td>ID</td>
                <td>权限名称</td>
                <td>控制器</td>
                <td>操作方法</td>
                <td>状态</td>
                <td>操作</td>
              </tr>
             {section name=f loop=$flist}
              <tr>
                <td><input type="checkbox" name="auth_id[]" value="{$flist[f].auth_id}"></td>               
                <td>{$flist[f].auth_id}</td>
                <td><strong>{$flist[f].auth_name}</strong></td>
                <td>{$flist[f].auth_c}</td>
                <td>{$flist[f].auth_a}</td>
                <td>{if $flist[f].auth_state==0}不可见{else}可见{/if}</td>
                <td>
                    <a href="#" onclick="if(confirm('确定删除？'))location.href='{$smarty.const.__CONTROLLER__}/delete/auth_id/{$flist[f].auth_id}';"><img src="/Show/Admin/Public/image/del.jpg" class="pit" title="删除"></a>
                    <a href="#" onclick="location.href='{$smarty.const.__CONTROLLER__}/xiugai/auth_id/{$flist[f].auth_id}'" ><img src="/Show/Admin/Public/image/edi.jpg" class="pit" title="编辑"></a>     
                </td>
              </tr>
              {section name=z loop=$zlist}
                {if $flist[f].auth_id==$zlist[z].auth_pid}
                <tr>
                    <td><input type="checkbox" name="id[]" value="{$zlist[z].auth_id}"></td>               
                    <td>{$zlist[z].auth_id}</td>
                    <td>{$zlist[z].auth_name|indent:$zlist[z].auth_level:"--/"}</td>
                    <td>{$zlist[z].auth_c}</td>
                    <td>{$zlist[z].auth_a}</td>
                    <td>{if $zlist[z].auth_state==0}不可见{else}可见{/if}</td>
                    <td>
                        <a href="#" onclick="if(confirm('确定删除？'))location.href='{$smarty.const.__CONTROLLER__}/delete/auth_id/{$zlist[z].auth_id}';"><img src="/Show/Admin/Public/image/del.jpg" class="pit" title="删除"></a>
                        <a href="#" onclick="location.href='{$smarty.const.__CONTROLLER__}/xiugai/auth_id/{$zlist[z].auth_id}'" ><img src="/Show/Admin/Public/image/edi.jpg" class="pit" title="编辑"></a>     
                    </td>
                </tr>
                {/if}
              {/section}
             {/section}
            </table>          
          </div>
          <div class="ope">
            <input type="submit" name="del" value="删除">
          </div>
          <div class="page">
           {$page}
          </div>
    </div>
    </form>
  </body>
</html>